package com.yxh.springdemo.controller;

import com.yxh.springdemo.service.Impl.StudentServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @Author: yuxinhang
 * @Date: 2022/6/14 16:21
 * @Description
 */
@Controller
public class StudentController {

    @Resource
    private StudentServiceImpl studentService;

    @RequestMapping(value = "/getStudent", method = RequestMethod.GET)
    public String getStudent() {
        return studentService.getStudent().toString();
    }
}
